
import request from "@/utils/request"

export const getProListAPI = (params) => request.get("/pro/list",{
    params,  
});
export const getProCategoryAPI = (params) => request.get("/pro/getCategory",{
    params,  
});

export const searchProListAPI = (params) => request.post("/pro/searchPro",params);

export const updateIsseckillAPI = (params) => request.post("/pro/updateFlag", {
    type:"isseckill",
    ...params,
});

export const updateIsrecommendAPI = (params) => request.post("/pro/updateFlag", Object.assign({type:"isrecommend"},params));

export const getProDetail = (params) => request.get("/pro/detail",{
    params,  
});